package com.tsd.core.annotation;

import org.springframework.stereotype.Component;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @ClassName: TaskJobMethod
 * @Description: 标识定时任务的方法，用于提取项目中的定时任务以便设置
 * @Author: Hillpool
 * @Date: 2022/4/15 16:35
 * @Version: 1.0
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Component
public @interface TaskJobMethod {

    String name() default "";

    int type() default -1;

    String cron() default "";

    int interval() default -1;

    boolean editable() default true;
}
